package cn.haoxsf.app.system.model.param;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @program: app
 * @description: 入驻json参数
 * @author: Ele qvbanfm@qq.com
 * @create: 2020-01-10 13:08
 **/
@Data
public class SettledInParam {

    /**
     * 入驻类型
     */
    @NotBlank(message = "入驻类型id不能为空")
    @ApiModelProperty(value = "入驻类型-",example = "1215812049778319361",required = true)
    private String settledInTypeId;

    /**
     * 营业执照
     */
    @ApiModelProperty(value = "营业执照图片；-注意不能是假的的数据必须调用上传接口获取到id，对应上传接口的finalName字段",required = true)
    private String stoerLicense;

    /**
     * 是否有门店
     */
    @NotBlank(message = "是否有门店不能为空")
    @ApiModelProperty(value = "是否有门店；如果为YES反之为NO，营业执照图片不能为空",required = true)
    private String isNotStore;

    /**
     * 门店图片id
     */
    @ApiModelProperty(value = "门店图片id；如果有门店，门店图片不能为空-注意不能是假的的数据必须调用上传接口获取到id，对应上传接口的finalName字段")
    private String storeImageId;

    /**
     * 门店地址
     */
    @ApiModelProperty(value = "门店地址；如果有门店，门店地址不能为空")
    private String storeAddress;

    /**
     * 手机号
     */
    @Pattern(regexp = "1[3|4|5|7|8][0-9]\\d{8}",message = "手机号不能为空")
    @ApiModelProperty(value = "手机号-不能为空",required = true)
    private String phone;

    /**
     * 短信验证码
     */
    @NotBlank(message = "验证码不能为空")
    @Size(min = 4,max = 4,message = "验证码为四位")
    @ApiModelProperty(value = "验证码-不能为空",required = true,example = "6668")
    private String sms;

    @NotBlank(message = "真实姓名不能为空")
    @ApiModelProperty(value = "真实姓名",required = true,example = "xxx")
    private String realName;

    /**
     * 身份证号
     */
//    @NotBlank(message = "身份证号不能为空")
    @ApiModelProperty(value = "身份证号",example = "xxx")
    private String cardNo;
    /**
     * 身份证图片
     */
//    @NotBlank(message = "身份证图片id不能为空")
    @ApiModelProperty(value = "身份证图片id多个用,分隔 -注意不能是假的的数据必须调用上传接口获取到id，对应上传接口的finalName字段",example = "xxx")
    private String cardImageId;

    /**
     * 用户地址
     */
    @ApiModelProperty(value = "申请时的地址-不能为空",required = true,example = "xxxxxxx")
    private String address;

    /**
     * 精度
     */

    @ApiModelProperty(value = "申请时的精度-不能为空",required = true)
    private Double longitude;

    /**
     * 维度
     */
    @ApiModelProperty(value = "申请时的维度-不能为空",required = true)
    private Double latitude;

    /**
     * 工作时间
     */
    @NotBlank(message = "工作时间不能为空")
    @ApiModelProperty(value = "工作时间-不能为空",required = true,example = "8:00,17:00")
    private String workTime;
}
